﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/admin.master" AutoEventWireup="true" CodeFile="view.aspx.cs" Inherits="aspx_admin_hdly_view" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Title" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" Runat="Server">

    <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="活动掠影ID" DataSourceID="ods活动掠影" ForeColor="#333333" GridLines="None" OnRowDeleting="GridView1_RowDeleting" Width="100%" OnRowEditing="GridView1_RowEditing">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="活动掠影ID" HeaderText="活动掠影ID" InsertVisible="False" ReadOnly="True" SortExpression="活动掠影ID" />
            <asp:BoundField DataField="名称" HeaderText="名称" SortExpression="名称" />
            <asp:TemplateField HeaderText="小图片" SortExpression="小图片">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("小图片") %>' Tooltip='<%# Eval("名称") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Image ID="Image1" runat="server" AlternateText='<%# Eval("名称") %>' ImageUrl='<%# Eval("小图片") %>' Width="120px" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
    <asp:ObjectDataSource ID="ods活动掠影" runat="server" DeleteMethod="Delete" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="ds_名师讲堂TableAdapters.tb_活动掠影TableAdapter" UpdateMethod="Update">
        <DeleteParameters>
            <asp:Parameter Name="Original_活动掠影ID" Type="Int32" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="名称" Type="String" />
            <asp:Parameter Name="小图片" Type="String" />
            <asp:Parameter Name="大图片" Type="String" />
            <asp:Parameter Name="链接" Type="String" />
            <asp:Parameter Name="显示" Type="Boolean" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="名称" Type="String" />
            <asp:Parameter Name="小图片" Type="String" />
            <asp:Parameter Name="大图片" Type="String" />
            <asp:Parameter Name="链接" Type="String" />
            <asp:Parameter Name="显示" Type="Boolean" />
            <asp:Parameter Name="Original_活动掠影ID" Type="Int32" />
        </UpdateParameters>
    </asp:ObjectDataSource>

</asp:Content>

